package com.zjjxy.mapper;

import com.zjjxy.pojo.entity.Question;
import com.zjjxy.pojo.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface StudentMapper {
    @Select("select * from t_student where no = #{no}")
    Student getByNo(String no);

    @Select("select * from t_question where status = 'start' order by update_time desc limit 1")
    Question selectByUpdateTimeAndStatus();
}
